package sk.stancel.peter.sudoku.activities;

import sk.stancel.peter.sudoku.R;
import sk.stancel.peter.sudoku.Sudoku;
import android.app.Activity;
import android.os.Bundle;
import android.text.Html;
import android.text.method.LinkMovementMethod;
import android.widget.TextView;

public class AboutActivity extends Activity{

	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.about);
		
		TextView tv = (TextView) findViewById(R.id.text_created_by);
		tv.setTypeface(Sudoku.getFont());

		tv = (TextView) findViewById(R.id.text_author);
		tv.setTypeface(Sudoku.getFont());

		tv = (TextView) findViewById(R.id.text_about_version);
		tv.setTypeface(Sudoku.getFont());
		
		tv = (TextView) findViewById(R.id.text_version);
		tv.setTypeface(Sudoku.getFont());
		
		tv = (TextView) findViewById(R.id.text_email);
		tv.setTypeface(Sudoku.getFont());
		
		tv = (TextView) findViewById(R.id.about_sudoku);
		tv.setMovementMethod(LinkMovementMethod.getInstance());
		String text = "Hard <a href='http://mapleta.maths.uwa.edu.au/~gordon/sudokumin.php'>Sudoku patterns</a> are<br>collection of Gordon Royle";
		tv.setText(Html.fromHtml(text));
	}
}
